package com.tasly.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ImportResource;

/**
 * @Description: ScoreServiceApplication
 * @Author: sunpengpeng
 * @Date: Create in 2017/5/15 16:33
 * @Modified By:
 */

@EnableCircuitBreaker
@EnableFeignClients
@EnableEurekaClient
@SpringBootApplication
public class ProductServiceApplication {

	//@SpringCloudApplication注解相当于@SpringBootApplication @EnableDiscoveryClient@EnableCircuitBreaker
	//其实用更简单的话来说，就是如果选用的注册中心是eureka，那么就推荐@EnableEurekaClient，
	// 如果是其他的注册中心，那么推荐使用@EnableDiscoveryClient。
	public static void main(String[] args) {
		SpringApplication.run(ProductServiceApplication.class, args);
	}

}